package mysql.Base;
import mysql.uitl.*;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class JdbcUtiltest {
    public static void main(String[] args) {
        mysqlUtil.getConn();
        String sql="insert into user(username,password) values('test','test')";
        PreparedStatement ps = mysqlUtil.getPs(sql);
//        try {
//            ps.setString(1,"test");
//            ps.setString(2,"test");
//        } catch (SQLException e) {
//            e.printStackTrace();
//        }
        int insert = mysqlUtil.getInsert();
        System.out.println(insert);
    }
}
